#include "mainwindow.h"
#include "ui_mainwindow.h"
#include<QDebug>
#include<QPushButton>
#include<QFileDialog>
MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    resize(500,600);
    QPushButton*button=new QPushButton("文件",this);
    QFileDialog*filedialog=new QFileDialog(this);
    connect(button,&QPushButton::clicked,[=](){
//       QStringList str=filedialog->getOpenFileNames(this,"文件","E:\\Qt_Icon");
        QString str=filedialog->getSaveFileName(this,"文件","E:\\Qt_Icon");

        qDebug()<<str;
    });
}

MainWindow::~MainWindow()
{
    delete ui;
}

